package com.freesun.shop.domain;


import cn.hutool.extra.ftp.Ftp;
import org.apache.commons.net.ftp.FTPClient;

import java.io.IOException;
import java.io.Serializable;
import java.util.List;


public class User implements Serializable {

   public static final long serialVersionUID =1L;
   private String username;
   private String password;
   private List<String> roles;
   private List<String> permission;



    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public List<String> getPermission() {
        return permission;
    }

    public void setPermission(List<String> permission) {

        this.permission = permission;
    }

    /*public static void main(String[] args) {
        Ftp ftp = new Ftp("192.168.150.131", 21, "ftp-user", "123456");
       // ftp.mkdir("res"); //在ftp-user目录下创建res文件夹
        ftp.cd("res");
        FTPClient ftpClient = ftp.getClient();
        ftpClient.enterLocalPassiveMode();
        boolean img = ftp.upload("img", new File("D:/1.jpg"));
        System.out.println(img);
        try {
            ftp.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }*/
}
